//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.vere.orm.log;

import com.vere.orm.db.Configuration;

public class CLog {
    private static ILog log;

    static {
        if (log == null) {
            try {
                Class clazz = Class.forName(Configuration.getLogClass());
                log = (ILog)clazz.newInstance();
            } catch (Exception var1) {
                var1.printStackTrace();
            }
        }

    }

    public CLog() {
    }

    public static void debug(String operateType, String sql, Object[] params) {
        log.debug(operateType, sql, params);
    }

    public static void debug(String operateType, String sql) {
        log.debug(operateType, sql);
    }

    public static void saveLogToFile() {
        log.saveLogToFile();
    }

    public static void flushAllLogToFile() {
        log.flushAllLogToFile();
    }
}
